<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>指令</title>
</head>
<body>
    <div id="app">
        v-text:<span v-text="hello"></span><br/>
        v-html:<span v-html="hello"></span>
        <hr>
        <h1>以下咚咚</h1>
        <input type="checkbox" v-model="lessons" value="java"/>java<br>
        <input type="checkbox" v-model="lessons" value="c"/>c<br>
        <input type="checkbox" v-model="lessons" value="c++"/>c++<br>
        <input type="checkbox" v-model="lessons" value="p"/>p<br>
        <h1>
            您已购买以下课程：{{lessons.join(",")}}
        </h1>

    </div>

    <script src="../node_modules/vue/dist/vue.js"></script>
    <script type="text/javascript" >
    	var vm = new Vue({
            el:'#app',
            data:{
                lessons:[],
                hello:"<h1>大家好<h1/>"
            }
        })
    </script>
</body>
</html>